<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../common/taglibs.jsp"%>
<%@include file="../../common/_head.jsp"%>
<html>
<head>
    <title>积分兑换审核列表</title>
</head>
<body pname="<%=basePath%>">
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <table class="layui-hide" id="data-table" lay-filter="data-table"></table>

                    <script type="text/html" id="data-table-toolbar">
                        <div class="layui">
                            <div class="layui-condition">
                                <label>搜索：</label>
                                <div class="layui-inline" style="width: 100px;">
                                    <input type="text" id="userId" placeholder="请输入用户ID" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-condition">
                                <label>状态：</label>
                                <div class="layui-inline" style="width: 90px;">
                                    <select id="status">
                                        <option value="">全部</option>
                                        <option value="0">待审核</option>
                                        <option value="1">已通过</option>
                                        <option value="2">已拒绝</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-condition">
                                <label>时间：</label>
                                <div class="layui-inline" style="width: 180px;">
                                    <input type="text" class="layui-input" id="time" placeholder=" - " autocomplete="off">
                                </div>
                            </div>
                            <div class="layui-condition">
                                <button type="button" class="layui-btn" id="search" lay-event="search">
                                    <i class="layui-icon">&#xe615;</i>搜索
                                </button>
                            </div>
                        </div>
                    </script>

                    <script type="text/html" id="data-table-bar">
                        <c:forEach items="${userPermissions}" var="permission">
                            <c:if test="${permission eq '/audit/creditExchange/audit'}">
                                {{# if(d.status == 0){ }}
                                    <a class="layui-btn layui-btn-xs" lay-event="pass">通过</a>
                                    <a class="layui-btn layui-btn-xs" lay-event="refuse">拒绝</a>
                                {{# } }}
                            </c:if>
                        </c:forEach>
                    </script>

                    <script type="text/html" id="statusTpl">
                        {{# if(d.status == 0){ }}
                            待审核
                        {{# }else if(d.status == 1){ }}
                            已通过
                        {{# }else{ }}
                            已拒绝
                        {{# } }}
                    </script>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="<%=path%>/js/auditmanage/creditExchange/list.js?v=1.1.2"></script>
</body>
</html>
